package com.ityangxu.langchain4j.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ityangxu.langchain4j.entity.ChatForm;
import com.ityangxu.langchain4j.entity.Result;
import com.ityangxu.langchain4j.entity.User;
import com.ityangxu.langchain4j.entity.UserDto;
import com.ityangxu.langchain4j.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "用户管理")
@RestController
@RequestMapping("/api")
public class UserController {

    @Resource
    UserService userService;
    @PostMapping("/users")
    public Result<IPage<User>> getUserList(@RequestBody UserDto userDto) {
        return userService.getUserList(userDto);
    }
}
